/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.item.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;

/**
 * 教具出入库日志 实体类
 *
 * @author
 * @since 2023-03-22
 */
@Data
@TableName("ts_item_stock_log")
@ApiModel(value = "StockLog对象", description = "教具出入库日志")
@EqualsAndHashCode(callSuper = true)
public class ItemStockLogEntity extends TenantEntity {

	/**
	 * 乐观锁
	 */
	@ApiModelProperty(value = "乐观锁")
	private String revision;
	/**
	 * 对应的教具id;教具id
	 */
	@ApiModelProperty(value = "对应的教具id;教具id")
	private Long itemId;

	/**
	 * 操作数量;出入库数量
	 */
	@ApiModelProperty(value = "操作数量;出入库数量")
	private Integer number;
	/**
	 * 操作类型;
	 * ItemOperateType 枚举
	 */
	@ApiModelProperty(value = "操作类型")
	private String type;
	/**
	 * 操作人;操作人id 借出或存入
	 */
	@ApiModelProperty(value = "操作人;操作人id 借出或存入")
	private Long userId;
	/**
	 * 操作备注;填写操作具体情况，比如上课借出
	 */
	@ApiModelProperty(value = "操作备注;填写操作具体情况，比如上课借出")
	private String operationBackup;
	/**
	 * 出库时间
	 */
	@ApiModelProperty(value = "出库时间")
	private Date deliveryTime;
	/**
	 * 入库时间
	 */
	@ApiModelProperty(value = "入库时间")
	private Date warehousingTime;

}
